package com.xp.code.servicesImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xp.code.dao.IPostInfoDao;
import com.xp.code.services.IPostInfoService;
import com.xp.code.vo.PostInfoVO;

/**
 * 
 * @author HAHA
 *
 */
@Service("postInfoService")
@Transactional(rollbackFor=java.lang.Exception.class)
public class PostInfoService implements IPostInfoService {

	@Resource(name="postInfoDao")
	private IPostInfoDao postInfoDao;
	
	public PostInfoService() {
		
	}

	public IPostInfoDao getPostInfoDao() {
		return postInfoDao;
	}

	public void setPostInfoDao(IPostInfoDao postInfoDao) {
		this.postInfoDao = postInfoDao;
	}

	/* (non-Javadoc)
	 * @see com.xp.code.servicesImpl.IPostInfoService#addPostInfos(com.xp.code.vo.PostInfoVO)
	 */
	public PostInfoVO addPostInfos(PostInfoVO postInfoVO)throws Exception{
		return postInfoDao.addPostInfos(postInfoVO);
	}
}
